package com.hodgepodge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 标签表
 * </p>
 *
 * @author jiangjian
 * @since 2021-02-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Tag extends Model<Tag> {

    private static final long serialVersionUID = 1L;

    /**
     * 标签ID
     */
    @TableId(value = "tag_id", type = IdType.AUTO)
    private Long tagId;

    /**
     * 标签名称
     */
    private String name;

    /**
     * 标签别名
     */
    private String alias;

    /**
     * 权重
     */
    private Integer weight;

    /**
     * 标签描述
     */
    private String description;


    @Override
    protected Serializable pkVal() {
        return this.tagId;
    }

}
